package com.tuzhi.sys.jpa.entity;

import com.tuzhi.sys.jpa.entity.pk.UserRoleMenuPk;
import lombok.Data;

import javax.persistence.*;

/**
 * 用户-角色-菜单；视图
 */
@Data
@Entity
@IdClass(UserRoleMenuPk.class)
@Table(name = "user_role_menu", schema = "tuzhi", catalog = "")
public class UserRoleMenuViewEntity {
    @Id
    @Column(name = "userId")
    private Long userId;
    @Column(name = "username")
    private String username;
    @Column(name = "nickname")
    private String nickname;
    @Column(name = "dept_id")
    private Long deptId;
    @Column(name = "org_id")
    private Long orgId;
    @Column(name = "user_status")
    private Integer userStatus;
    @Id
    @Column(name = "role_id")
    private Long roleId;
    @Column(name = "role_title")
    private String roleTitle;
    @Column(name = "role_name")
    private String roleName;
    @Column(name = "role_status")
    private Integer roleStatus;
    @Id
    @Column(name = "menu_id")
    private Long menuId;
    @Column(name = "menu_title")
    private String menuTitle;
    @Column(name = "icon")
    private String icon;
    @Column(name = "perms")
    private String perms;
    @Column(name = "url")
    private String url;
    @Column(name = "pid")
    private Long pid;
    @Column(name = "menu_status")
    private Integer menuStatus;
}
